<!--<?php
foreach($forumdb as $key => $value){
if ($value['forumtype'] == 6) continue;
print <<<EOT
-->
<div class="mode-boxC c-forum">
<h2 class="fn"><div>
	<span class="fr c-zi gray"><a href="thread.php?fid=$key">&raquo;进入版块</a></span>
    <span class="b"><a href="thread.php?fid=$key">$value[name]</a></span> <span class="c-zi">
<!--
EOT;
if ($showsub[$key]){print <<<EOT
-->
    子版块：<span class="fn">$showsub[$key]</span>
<!--
EOT;
}print <<<EOT
-->
    </span>
</div></h2>
	<div class="c-box">
		<div class="c-t-300 fl bdr pr10 img">
<!--
EOT;
foreach ($value['newpic'] as $val) {
$val[attachurl] = minImage($val[attachurl],68,68);
print<<<EOT
-->
            <dl class="ml mr mb mode-list-dl">
                <dt><a href="read.php?tid={$val[tid]}"><img src="{$val[attachurl]}" /></a></dt>
                <dd class="title blue"><a href="read.php?tid={$val[tid]}" class="f14">{$val[subject]}</a></dd>
                <dd class="text">{$val[content]}</dd>
                <dd class="s1 b">{$val[replies]}条回复</dd>
            </dl>
<!--
EOT;
}print<<<EOT
-->
</div>
<!--
EOT;
if($value['forumtype'] == 2){print <<<EOT
-->
		<div class="c-t-500 fl">
        	<ul class="mode-listA mode-u-img">
        		<li><span>截止时间</span>热门活动&nbsp;活动地点</li>
<!--
EOT;
foreach ($value['hot'] as $val) {print <<<EOT
-->
				<li><span>$val[deadline]</span><a href="read.php?tid=$val[tid]">$val[subject]</a><span class="gray">$val[location]</span></li>
<!--
EOT;
}print<<<EOT
-->
        	</ul>
        </div>
<!--
EOT;
}elseif($value['forumtype'] == 3){print <<<EOT
-->
		<div class="c-t-500 fl">
        	<ul class="mode-listA mode-u-img">
        		<li><span>积分</span>热门悬赏&nbsp;<span class="gray">悬赏人</span></li>
<!--
EOT;
foreach ($value['hot'] as $val) {print <<<EOT
-->
				<li>$val[cbval]<a href="read.php?tid=$val[tid]">$val[subject]</a>&nbsp;<a href="u.php?uid=$val[authorid]">$val[author]</a></li>
<!--
EOT;
}print <<<EOT
-->
			</ul>
        </div>
<!--
EOT;
}elseif($value['forumtype'] == 4){print <<<EOT
-->
		<div class="c-t-500 fl">
			<ul class="mode-list-img img">
<!--
EOT;
foreach ($value['hot'] as $val) {print <<<EOT
-->
					 <li>
						<a href="read.php?tid=$val[tid]" target="_blank"><img src="$val[icon]" /></a>
						<p><a href="read.php?tid=$val[tid]" target="_blank">$val[name]</a></p>
						价格：$val[price]
					</li>
<!--
EOT;
}print <<<EOT
-->
			</ul>
		</div>
<!--
EOT;
}elseif($value['forumtype'] == 5){print <<<EOT
-->
		<div class="c-t-500 fl">
        	<ul class="mode-list-img img">
<!--
EOT;
$i=0;
foreach($value['newpic'] as $val) {
$i++;if($i>3){
print <<<EOT
-->
				<li>
                    <a href="read.php?tid=$val[tid]"><img src="$val[attachurl]" /></a>
                    <p>$val[subject]</p>
                </li>
<!--
EOT;
}
}print <<<EOT
-->
			</ul>
		</div>			
<!--
EOT;
}else{print <<<EOT
-->
		<div class="c-t-500 fl">
        	<ul class="mode-listA mode-u-img">
<!--
EOT;
foreach($value['hot'] as $val) {print <<<EOT
-->
				<li><span><a href="u.php?uid=$val[uid]">$val[author]</a></span>
	            	<a href="read.php?tid=$val[tid]">$val[subject]</a>
				</li>
<!--
EOT;
}print <<<EOT
-->
        	</ul>
        </div>
<!--
EOT;
}print<<<EOT
-->
	<div class="c"></div>
	</div>
<div class="c"></div>
</div>
<!--
EOT;
}?>